package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.entity.Permission;
import com.chen.entity.RolePermisson;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {



    @Select("select *from role_permission where role_id=#{roleId}")
    List<RolePermisson> getRolePermissionByRoleId(int roleId);
}
